package com.kkb.mapper;

import com.kkb.pojo.Hospitalization;
import com.kkb.pojo.HospitalizationExample;
import java.util.List;

import com.kkb.vo.HospitalizationQueryVO;
import org.apache.ibatis.annotations.Param;

public interface HospitalizationMapper {
    long countByExample(HospitalizationExample example);

    int deleteByExample(HospitalizationExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Hospitalization record);

    int insertSelective(Hospitalization record);

    List<Hospitalization> selectByExample(HospitalizationExample example);

    Hospitalization selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Hospitalization record, @Param("example") HospitalizationExample example);

    int updateByExample(@Param("record") Hospitalization record, @Param("example") HospitalizationExample example);

    int updateByPrimaryKeySelective(Hospitalization record);

    int updateByPrimaryKey(Hospitalization record);

    List<Hospitalization> selectByVague(HospitalizationQueryVO example);

    int outHospital(List patients);

    int exitHospital(List patients);

    Hospitalization selectByPatientId(Integer patientId);
}